<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"  
    xmlns:p="http://primefaces.org/ui">  
   
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Sistema Gas</title>
<link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/estilos.css" media="screen" />   
</h:head>
<f:view>
<h:body >
<div id="topo">
<img src="#{facesContext.externalContext.requestContextPath}/images/logo_sgb.gif" ></img>
</div>

<ui:include src="/admin/header.xhtml"></ui:include>

<div id="corpo" >

<fieldset>

<div style="font-size: 12px; width: 490px; margin:10px auto; float: left; ">

<h:form>
            <div style="font-size: 12px; height: 320px; ">
            <p:messages id="msgs"/>
    	<p:panelGrid columns="4" style="width: 950px;">
    <f:facet name="header">
        <div style="font-size: 15px;">Cadastro de Cargos</div>
    </f:facet>

    <h:outputLabel for="cargo" value="CARGO " />
    <p:inputText id="cargo" value="#{cargoBean.cargoSelec.nome}" required="true" requiredMessage="Campo cargo obrigatorio"   label="cargo"/>
    
	  <h:outputLabel for="real" value="SALARIO " />
    <p:inputText id="real"  value="#{cargoBean.cargoSelec.salario}" required="true" requiredMessage="Campo salario obrigatorio"  label="real" >
    </p:inputText>
      
    <f:facet name="footer">
        <p:commandButton value="Cadastrar" ajax="false" action="#{cargoBean.salvar}" icon="ui-icon-disk" style="margin:0"/>
    </f:facet>
</p:panelGrid>
                </div>
    	  </h:form>

</div>
</fieldset>
</div>
<div id="rodape">
<fieldset>
<img src="#{facesContext.externalContext.requestContextPath}/images/logo_gas.gif" ></img>    &copy; 2013 Todos direitos reservados 
</fieldset>
</div>
</h:body> 
</f:view>
</html>